package com.siha_back.service.impl;

import com.siha_back.entity.dto.MockInterview;
import com.siha_back.mapper.MockInterviewMapper;
import com.siha_back.service.MockInterviewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 面试记录信息存储表(MockInterview)表服务实现类
 *
 * @author makejava
 * @since 2025-04-18 15:35:38
 */
@Service
public class MockInterviewServiceImpl implements MockInterviewService {
    @Autowired
    private MockInterviewMapper mockInterviewMapper;

    @Override
    public int insert(MockInterview mockInterview) {
        return mockInterviewMapper.insert(mockInterview);
    }

    @Override
    public MockInterview queryByNew() {
        return mockInterviewMapper.queryByNew();
    }

    @Override
    public List<MockInterview> queryByUserId(Integer userId) {
        return mockInterviewMapper.queryByUserId(userId);
    }

//
//    @Override
//    public MockInterview queryById(Long id) {
//        return null;
//    }
}
